home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
hardware
/
cpu115
/
cputype.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-02-27
|
2KB
|
83 lines
/* ------------------------------------------------------------------------- *
* CPUTYPE.H TMi0SDGL(tm) interface module Version 1.15 *
* *
* Copyright(c) 1994,95 by B-coolWare. Written by Bobby Z. *
* ------------------------------------------------------------------------- */
#ifndef __CPUTYPE_H
#define __CPUTYPE_H
#ifndef __Lib__
#ifdef __cplusplus
extern "C" {
#endif
extern char * pascal cpuType_Str(void);
extern char * pascal fpuType_Str(void);
extern float pascal CPU_Speed(void);
extern int pascal intCPU_Speed(void);
extern int pascal isSMMAble(void);
#ifdef __cplusplus
}
#endif
#endif /* __Lib__ */
/* processor and coprocessor type defines follow */
#define i8088 0x0000
#define i8086 0x0001
#define V20 0x0002
#define V30 0x0003
#define i80188 0x0004
#define i80186 0x0005
#define i80286 0x0006
#define i80386sxr 0x0007
#define i80386sxv 0x0107
#define i80386dxr 0x0008
#define i80386dxv 0x0108
#define i386slr 0x0009
#define i386slv 0x0109
#define i486sxr 0x000A
#define i486sxv 0x010A
#define i486dxr 0x000B
#define i486dxv 0x010B
#define cx486slcr 0x000C
#define cx486slcv 0x010C
#define cx486r 0x000D
#define cx486v 0x010D
#define iP5r 0x000E
#define iP5v 0x010E
#define cxM1r 0x000F
#define cxM1v 0x010F
#define iP24Dr 0x0010
#define iP24Dv 0x0110
#define umcU5sxr 0x0013
#define umcU5sxv 0x0113
#define umcU5dxr 0x0014
#define umcU5dxv 0x0114
typedef unsigned char byte;
typedef unsigned int word;
#ifdef __cplusplus
extern "C" {
#endif
extern word pascal CPU_Type(void);
extern byte pascal checkEmu(void);
/* extern byte pascal checkAMD(void); */
#ifdef __cplusplus
}
#endif
#ifndef __Lib__
extern byte pascal __CPU;
#else
byte pascal __CPU = 0;
#endif
#endif /* __CPUTYPE_H */